import request from '@/utils/request'

// 查询检测对象字典列表
export function listObjectDict(query) {
  return request({
    url: '/gas/objectDict/list',
    method: 'get',
    params: query
  })
}

// 查询检测对象字典详细
export function getObjectDict(code) {
  return request({
    url: '/gas/objectDict/' + code,
    method: 'get'
  })
}

// 新增检测对象字典
export function addObjectDict(data) {
  return request({
    url: '/gas/objectDict',
    method: 'post',
    data: data
  })
}

// 修改检测对象字典
export function updateObjectDict(data) {
  return request({
    url: '/gas/objectDict',
    method: 'put',
    data: data
  })
}

// 删除检测对象字典
export function delObjectDict(code) {
  return request({
    url: '/gas/objectDict/' + code,
    method: 'delete'
  })
}
